// 进行全局组件的挂载
// 导入组件
import PageTools from './PageTools/index.vue'
// 导入组件
import UploadExcel from './UploadExcel'
// 创建数组,数组中是导入的模块
import UploadImg from './UploadImg'
// import ImageHolder from './ImageHolder/index.vue'
import ImageHolder from './ImageHolder'
import Lang from './Lang'
import ScreenFull from './ScreenFull'
const components = [
  PageTools,
  UploadExcel,
  UploadImg,
  ImageHolder,
  Lang,
  ScreenFull
]
export default {
  install(Vue) {
    components.forEach(component => {
      // 第一个参数: component.name 声明组件的 name属性,也就是别名
      // 第二个参数,组件的具体逻辑
      Vue.component(component.name, component)
    })
    // Vue.component('PageTools', PageTools)
  }
}

